package b2.player
{
	public class PlayerInfoManager
	{
		static private var instance:PlayerInfoManager;
		//用户本人的ID
		public var myUserId:int;
		//所有的玩家（用ID作为索引）
		public var players:Object;
		//所有的坦克（用ID作为索引）
		public var tanks:Object;
		
		//用户本人的人人网ID
		public var myRenRenId:int;
		public var myRenRenName:String;
		public var myRenRenTinyUrl:String;
		
		public function PlayerInfoManager()
		{
			players = new Object();
			tanks = new Object();
		}

		static public function getInstance():PlayerInfoManager
		{
			if (!instance)
				instance = new PlayerInfoManager();
			return instance;
		}
		
		public function get me():PlayerInfo
		{
			return players[myUserId];
		}
	}
}